package com.project.bean;

/**
 * 用户实体类
 */
public class UserBean {
    /**用户id*/
    private int id ;
    /**用户名*/
    private String userName;
    /**密码*/
    private String pwd = "000";
    /**真名*/
    private String trueName;
    /**权限*/
    private String level;

    public UserBean() {
    }

    public UserBean(String userName, String trueName, String level) {
        this.userName = userName;
        this.trueName = trueName;
        this.level = level;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", pwd='" + pwd + '\'' +
                ", trueName='" + trueName + '\'' +
                ", level='" + level + '\'' +
                '}';
    }
}
